refactor: consolidate TOML parsers to smol-toml#507
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefactors TOML handling to standardize on the smol-toml parser across the Gradle provider and project dependencies, replacing fast-toml and updating usage accordingly. Class diagram for Java_gradle TOML parsing refactorclassDiagram
class Base_java
class Java_gradle {
+resolveAliasFromToml(manifestPath, alias)
}
class SmolToml {
+parseToml(tomlString)
}
Java_gradle --|> Base_java
Java_gradle ..> SmolToml : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Since
smol-tomlis stricter and TOML 1.0 compliant, consider checking whether any Gradlelibs.versions.tomlfiles that previously parsed now fail and, if so, whether you want to surface a clearer error message or fallback behavior for those cases. - Now that
smol-tomlis the single TOML dependency, it may be worth scanning for any remainingfast-toml-style usage patterns (e.g., namespace vs. function imports) to ensure all providers are using a consistent import/parse pattern.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since `smol-toml` is stricter and TOML 1.0 compliant, consider checking whether any Gradle `libs.versions.toml` files that previously parsed now fail and, if so, whether you want to surface a clearer error message or fallback behavior for those cases.
- Now that `smol-toml` is the single TOML dependency, it may be worth scanning for any remaining `fast-toml`-style usage patterns (e.g., namespace vs. function imports) to ensure all providers are using a consistent import/parse pattern.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Strum355
force-pushed
the
chore/consolidate-toml-parser
branch
2 times, most recently
from
May 8, 2026 10:28
4503bfb to
884cce3
Compare
Replace fast-toml (TOML 0.5, unmaintained) with smol-toml (TOML 1.0, actively maintained) in the Gradle provider, unifying the codebase on a single TOML library. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Strum355
force-pushed
the
chore/consolidate-toml-parser
branch
from
May 8, 2026 10:29
884cce3 to
61f475e
Compare
Strum355
enabled auto-merge (squash)
May 8, 2026 10:30
ruromero
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fast-toml(TOML 0.5, unmaintained) withsmol-toml(TOML 1.0, actively maintained) in the Gradle providersmol-tomlwas already used in 4 other providers (Cargo, Poetry, UV, base_pyproject)smol-tomlfromdevDependenciestodependencieswhere it belongsTest plan
libs.versions.tomlparsing)🤖 Generated with Claude Code
Summary by Sourcery
Consolidate TOML parsing onto smol-toml and update the Gradle provider to use the unified parser.
Enhancements:
Build: